<table class="table table-bordered">
    <thead>
        <tr>
            <th>广告ID</th>
            <th>所属类别</th>
            <th>友情链接标题</th>
            <th>友情链接序号</th> 
            <th>友情链接简介</th> 
            <th>操作</th>
        </tr>
    </thead>
    <tbody id="ajaxList"> 
        {foreach name="list" item="vo" key="k" }
        <?php $link_kind = db('link_kind')->where(array('id'=>$vo['kid']))->find(); ?>
          <tr role="row">
            <td>{$vo.id}</td>
            <td>{$link_kind.kind_name}</td>
            <td>{$vo.title|getSubstr=0,33}</td>
            <td>{$vo.sort_order}</td> 
            <td>{$vo.link_info}</td> 
            <td>
              <!-- <a target="_blank" href="{:url('Home/Article/detail',array('article_id'=>$vo['id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="查看详情"><i class="fa fa-eye"></i></a> -->
              <a class="btn btn-primary" href="javascript:;" onclick="openYemian('/index.php/Admin/Other/linkForm/id/{$vo.id}','编辑广告内容')"><i class="fa fa-pencil"></i></a>
              <a class="btn btn-danger" href="javascript:void(0)" data-url="{:url('Other/adsDel')}" data-id="{$vo.id}" onclick="delRecord(this,'确定删除该广告？此操作不可恢复！',{$vo.id},'/index.php/Admin/Other/linkDel')"><i class="fa fa-trash-o"></i></a>
            </td>
          </tr>
        {/foreach}
    </tbody>
</table>
<div>
    <div style="float:left;">共{$total}条</div>
    <div style="float:right;">{$page|raw}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination a").click(function(){
        url = $(this).attr('href');
        ajax_get_table('formSearch',url);
        return false;
    });
    
</script>